home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / maple_st.swf / scripts / DefineSprite_611 / frame_2 / DoAction_2.as next >
Encoding:
Text File  |  2010-04-12  |  762 b   |  24 lines

  1. function stormshoot()
  2. {
  3.    _root.arrowimg = "shoot4";
  4.    duplicateMovieClip("_root.arrows.arrow","arrow" + _root.i,16384 + _root.i);
  5.    arrown = "arrow" + _root.i;
  6.    _root.i += 1;
  7.    arrowshooted += 1;
  8.    arrowy -= 4;
  9.    if(_root.player._xscale >= 0)
  10.    {
  11.       _root.arrows[arrown]._x = _root.player._x - 50.05;
  12.       _root.arrows[arrown]._xscale = _root.player._xscale;
  13.       _root.arrows[arrown]._y = _root.player._y + 40.65;
  14.       _root.arrows[arrown]._y -= arrowy;
  15.    }
  16.    else if(_root.player._xscale < 0)
  17.    {
  18.       _root.arrows[arrown]._x = _root.player._x + 50.05;
  19.       _root.arrows[arrown]._xscale = _root.player._xscale;
  20.       _root.arrows[arrown]._y = _root.player._y + 40.65;
  21.       _root.arrows[arrown]._y -= arrowy;
  22.    }
  23. }
  24.